<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="echarts.js"> </script>
</head>
<body>
    <div id="main" style="width: 600px;height: 400px;border: 2px solid red"></div>
    <script type="text/javascript">
        var myecharts = echarts.init(document.getElementById('main'));
        var option = {
            title: {text: '标签人数分布', left: 'left'},
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                type: 'shadow'
            }},
                 grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    type: 'value',
                    boundaryGap: [0, 0.01]
                },
                yAxis: {
                    type: 'category',
                    data: ['流失用户','回流用户','连续活跃用户','新用户','活跃用户']
                },
            series: [
                {
                    name: '人数分布',
                    type: 'bar',
                    data: [183472,6546,524,91,0,]

                }
            ]
        };
        myecharts.setOption(option)

    </script>
</body>
</html>